package com.xq.sqlSession;

import com.xq.pojo.Configuration;
import com.xq.pojo.MappedStatement;

import java.beans.IntrospectionException;
import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;

/**
 * @Author: xiaoqiang
 * @Description:
 * @Date: 2021/5/31
 * @Version: 1.0
 */
public interface Execotor {

    /**
     * 执行sql
     * @param param
     * @param <E>
     * @return
     */
     <E> List<E> query(Configuration configuration, MappedStatement mappedStatement,Object... param) throws SQLException, NoSuchFieldException, IllegalAccessException, ClassNotFoundException, InstantiationException, IntrospectionException, InvocationTargetException;
}
